<template>
  <div class="discovery">
    <header-top>
      <a slot="center" class="header_center">
        我的发 · 现
      </a>
    </header-top>
    <div class="discovery_content">
      <div class="discovery_content_header" @click="$router.push('/personal')">
        <flexbox>
          <flexbox-item :span="3">
            <div class="discovery_content_header_img">
              <img src="../../assets/images/icon_tuoxiang.png" style="width: 64px;height: 64px;"/>
            </div>
          </flexbox-item>
          <flexbox-item :span="6">
            <div class="discovery_content_header_name">练伟锋</div>
          </flexbox-item>
          <flexbox-item :span="1">
            <div class="discovery_content_header_jiantou">
              <img src="../../assets/images/btn_jiantou.png" style="width: 9px;height: 15px;"/>
            </div>
          </flexbox-item>
        </flexbox>
      </div>
      <div class="discovery_content_center">
        <flexbox @click.native="$router.push('/myreservation')">
          <flexbox-item :span="10">
            <div class="discovery_content_center_item">我的预约</div>
          </flexbox-item>
          <flexbox-item :span="1">
            <div class="discovery_content_center_div">
              <span class="discovery_content_center_span">0</span>
              <img src="../../assets/images/btn_jiantou.png"/>
            </div>
          </flexbox-item>
        </flexbox>
        <p class="line"></p>
        <flexbox @click.native="$router.push('/myevaluate')">
          <flexbox-item :span="10">
            <div class="discovery_content_center_item">我的评价</div>
          </flexbox-item>
          <flexbox-item :span="1">
            <div class="discovery_content_center_div">
              <span class="discovery_content_center_span">0</span>
              <img src="../../assets/images/btn_jiantou.png"/>
            </div>
          </flexbox-item>
        </flexbox>
        <p class="line"></p>
        <flexbox @click.native="$router.push('/toevaluate')">
          <flexbox-item :span="10">
            <div class="discovery_content_center_item">待评价
              <badge class="discovery_content_center_badge"></badge>
            </div>
          </flexbox-item>
          <flexbox-item :span="1">
            <div class="discovery_content_center_div">
              <span class="discovery_content_center_span">1</span>
              <img src="../../assets/images/btn_jiantou.png"/>
            </div>
          </flexbox-item>
        </flexbox>
      </div>
      <div class="discovery_content_footer">
        <flexbox @click.native="$router.push('/feedback')">
          <flexbox-item :span="10">
            <div class="discovery_content_center_item">意见反馈</div>
          </flexbox-item>
          <flexbox-item :span="1">
            <div class="discovery_content_center_div" style="margin-top: -8px;">
              <img src="../../assets/images/btn_jiantou.png"/>
            </div>
          </flexbox-item>
        </flexbox>
      </div>
    </div>
  </div>
</template>

<script>
  import {Flexbox, FlexboxItem, Badge} from 'vux'

  import HeaderTop from '../../components/HeaderTop/HeaderTop'

  export default {
    name: "Discovery",
    components: {
      Flexbox,
      FlexboxItem,
      Badge,
      HeaderTop
    }
  }
</script>

<style scoped>
  .discovery {
    overflow-y: hidden;
  }

  .discovery_content {
    margin-top: 48px;
  }

  .discovery_content_header {
    margin: 10px;
    margin-top: 58px;
    background-color: #fff;
    border: 1px solid #ffdccd;
    height: 100px;
    line-height: 100px;
    border-radius: 3px;
  }

  .discovery_content_center {
    margin: 10px;
    background-color: #fff;
    border: 1px solid #ffdccd;
    border-radius: 3px;
  }

  .discovery_content_footer {
    margin: 10px;
    background-color: #fff;
    border: 1px solid #ffdccd;
    border-radius: 3px;
  }

  .discovery_content_header_img {
    position: absolute;
    top: 78px;
    left: 40px;
  }

  .discovery_content_header_name {
    color: #333;
    font-size: 14px;
  }

  .discovery_content_header_jiantou {
    position: absolute;
    top: 62px;
    right: 30px;
  }

  .discovery_content_center_item {
    color: #333;
    font-size: 14px;
    height: 48px;
    line-height: 48px;
    margin-left: 20px;
  }

  .discovery_content_center_badge {
    margin: -15px 0 0 0;
  }

  .discovery_content_center_div {
    text-align: center;
  }

  .discovery_content_center_div img {
    width: 9px;
    height: 15px;
    position: absolute;
    right: 30px;
  }

  .discovery_content_center_span {
    color: #a0a0a0;
    font-size: 14px;
  }
</style>
